package cn.xunjie.org.service.impl;

import cn.xunjie.basic.service.impl.BaseServiceImpl;
import cn.xunjie.org.domain.Dictionarytype;
import cn.xunjie.org.mapper.DictionarydetailMapper;
import cn.xunjie.org.mapper.DictionarytypeMapper;
import cn.xunjie.org.service.IDictionarytypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DictionarytypeServiceImpl extends BaseServiceImpl<Dictionarytype> implements IDictionarytypeService {
    @Autowired
    private DictionarydetailMapper dictionarydetailMapper;
    @Autowired
    private DictionarytypeMapper dictionarytypeMapper;
    @Override
    public void removeById(Long id) {
        dictionarydetailMapper.deleteByTypeid(id);
        dictionarytypeMapper.delete(id);
    }
}










